package com.boot2.core.expiringmap;

/**
 * @param <K> Key type
 * @param <V> Value type
 * @author zhangweilin
 * @date 2019/12/22 20:58
 * A listener for expired object events.
 * @Description:
 */
public interface ExpirationListener<K, V> {
    /**
     * Called when a map entry expires.
     *
     * @param key   Expired key
     * @param value Expired value
     */
    void expired(K key, V value);
}